define(function(require) {
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	var ShellImpl = require('$UI/system/lib/portal/shellImpl');
	require("$UI/nase/main");

	var Model = function() {
		this.callParent();
		var shellImpl = new ShellImpl(this, {
			"contentsXid" : "pages",
			"pageMappings" : {
				"main" : {
					url : require.toUrl('./main.w')
				},
				"detail" : {
					url : require.toUrl('./detail.w')
				},
				"search" : {
					url : require.toUrl('$UI/nase/search.w')
				},
				"home" : {
					url : require.toUrl('$UI/nase/home.w')
				},
				"Login" : {
					url : require.toUrl('$UI/nase/Login.w')
				},
				"register" : {
					url : require.toUrl('$UI/nase/register.w')
				},
				"information" : {
					url : require.toUrl('$UI/nase/information.w')
				},
				"shop" : {
					url : require.toUrl('$UI/nase/shop.w')
				},
				"address" : {
					url : require.toUrl('$UI/nase/address.w')
				},
				"buy" : {
					url : require.toUrl('$UI/nase/buy.w')
				},
				"confirm" : {
					url : require.toUrl('$UI/nase/confirm.w')
				},
				"success":{
					url : require.toUrl('$UI/nase/success.w')
				}
			}
		});
		

	};

	Model.prototype.modelLoad = function(event){
		justep.Shell.showPage("main");
	};
	
	

	return Model;
});